package com.data.system.exception;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author: wangmq
 * @create: 2024-01-04 14:00
 **/

@RestControllerAdvice
public class GlobalExceptionAdminHandler {


    @ExceptionHandler(Exception.class)
    public String error(Exception e) {
        return "服务器开小差";
    }
}
